import request from '@/utils/request'
//员工管理重置密码
export function resetAccountUserPassword(data) {
  return request({
    url: '/api/user/update/password',
    method: 'post',
    data
  })
}
/**
 * 根据查询条件加载表【system_user】中保存的单位用户数据
 */
export function loadAccountUserList(data) {
  return request({
    url: '/admin/account-user/load-account-user-list',
    method: 'post',
    data
  })
}
/**
 * 根据用户id加载表【system_user】中保存的用户数据
 */
export function loadAccountUserWithId(data) {
  return request({
    url: '/admin/account-user/load-account-user-with-id',
    method: 'post',
    data
  })
}
/**
 * 根据用户id加载表【system_user】中保存的用户数据
 */
export function loadAccountUserTreeWithDepartmentId(data) {
  return request({
    url: '/admin/account-user/load-account-user-tree-with-department-id',
    method: 'post',
    data
  })
}
/**
 * 保存
 */
export function saveAccountUser(data) {
  return request({
    url: '/admin/account-user/save-account-user',
    method: 'post',
    data
  })
}
/**
 * 删除
 */
export function deleteAccountUserWithId(data) {
  return request({
    url: '/admin/account-user/delete-account-user-with-id',
    method: 'post',
    data
  })
}
/**
 * 根据组织机构父节点parent_id加载表【organization_institution】中保存的子组织机构数据
 */
export function loadOrganizationTreeWithParentId(data) {
  return request({
    url: '/admin/organization/load-organization-tree-with-parent-id',
    method: 'post',
    data
  })
}
/**
 * 根据组织机构父节点parent_id加载表【organization_institution】中保存的子组织机构数据
 */
export function loadOrganizationListWithParentId(data) {
  return request({
    url: '/admin/organization/load-organization-list-with-parent-id',
    method: 'post',
    data
  })
}
/**
 * 根据组织机构id加载表【organization_institution】中保存的组织机构数据
 * */
export function loadOrganizationWithId(data) {
  return request({
    url: '/admin/organization/load-organization-with-id',
    method: 'post',
    data
  })
}
/**
 * 保存组织机构数据
 */
export function saveOrganization(data) {
  return request({
    url: '/admin/organization/save-organization',
    method: 'post',
    data
  })
}
/**
 * 删除组织机构数据
 */
export function deleteOrganizationWithId(data) {
  return request({
    url: '/admin/organization/delete-organization-with-id',
    method: 'post',
    data
  })
}

/**业务系统信息维护
 * 根据查询条件加载表【business_system】中保存的业务系统数据
 */
export function loadBusinessSystemList(data) {
  return request({
    url: '/admin/business-system/load-business-system-list',
    method: 'post',
    data
  })
}
/**业务系统信息维护
 * 根据查询条件加载表【business_system】中保存的业务系统数据
 */
export function loadBusinessSystemWithId(data) {
  return request({
    url: '/admin/business-system/load-business-system-with-id',
    method: 'post',
    data
  })
}
/**业务系统信息维护
 * 保存业务系统数据信息
 */
export function saveBusinessSystem(data) {
  return request({
    url: '/admin/business-system/save-business-system',
    method: 'post',
    data
  })
}
/**业务系统信息维护
 * 删除业务系统数据信息
 */
export function deleteBusinessSystemWithId(data) {
  return request({
    url: '/admin/business-system/delete-business-system-with-id',
    method: 'post',
    data
  })
}
/**业务菜单按钮信息维护
 *
 */
export function loadButtonListWithMenuId(data) {
  return request({
    url: '/admin/button/load-button-list-with-menu-id',
    method: 'post',
    data
  })
}
/**业务菜单按钮信息维护
 *
 */
export function loadButtonWithId(data) {
  return request({
    url: '/admin/button/load-button-with-id',
    method: 'post',
    data
  })
}
/**业务菜单按钮信息维护
 *
 */
export function saveButton(data) {
  return request({
    url: '/admin/button/save-button',
    method: 'post',
    data
  })
}
/**业务菜单按钮信息维护
 *
 */
export function deleteButtonWithId(data) {
  return request({
    url: '/admin/button/delete-button-with-id',
    method: 'post',
    data
  })
}
/**业务系统菜单信息信息维护
 *
 */
export function loadSystemMenuListWithBusinessSystemId(data) {
  return request({
    url: '/admin/system-menu/load-system-menu-list-with-business-system-id',
    method: 'post',
    data
  })
}
/**业务系统菜单信息信息维护
 *
 */
export function loadSystemMenuWithId(data) {
  return request({
    url: '/admin/system-menu/load-system-menu-with-id',
    method: 'post',
    data
  })
}
/**业务系统菜单信息信息维护
 *
 */
export function saveSystemMenu(data) {
  return request({
    url: '/admin/system-menu/save-system-menu',
    method: 'post',
    data
  })
}
/**业务系统菜单信息信息维护
 *
 */
export function deleteSystemMenuWithId(data) {
  return request({
    url: '/admin/system-menu/delete-system-menu-with-id',
    method: 'post',
    data
  })
}

/**业务系统角色信息维护
 *根据业务系统id加载表【business_system_role】中保存的业务系统角色数据
 */
export function loadRoleListWithBusinessSystemId(data) {
  return request({
    url: '/admin/role/load-role-list-with-business-system-id',
    method: 'post',
    data
  })
}
/**业务系统角色信息维护
 *根据业务系统角色id加载表【business_system_role】中保存的业务系统角色数据
 */
export function loadRoleWithId(data) {
  return request({
    url: '/admin/role/load-role-with-id',
    method: 'post',
    data
  })
}
/**业务系统角色信息维护
 *保存数据
 */
export function saveRole(data) {
  return request({
    url: '/admin/role/save-role',
    method: 'post',
    data
  })
}

/**业务系统角色信息维护
 *删除数据
 */
export function deleteRoleWithId(data) {
  return request({
    url: '/admin/role/delete-role-with-id',
    method: 'post',
    data
  })
}
/**角色、菜单、按钮关联管理维护
 *根据业务系统id和角色id加载角色下包含的菜单数据和按钮数据
 */
export function loadRoleMenuButtonWithRoleId(data) {
  return request({
    url: '/admin/role-menu-button-relation/load-role-menu-button-with-role-id',
    method: 'post',
    data
  })
}
/**角色、菜单、按钮关联管理维护
 *保存角色用户关联信息
 */
export function saveRoleMenuButtonRelation(data) {
  return request({
    url: '/admin/role-menu-button-relation/save-role-menu-button-relation',
    method: 'post',
    data
  })
}
/**角色、用户信息关联管理维护
 *根据业务系统id和角色id加载角色下包含的菜单数据和按钮数据
 */
export function loadRoleUserWithRoleId(data) {
  return request({
    url: '/admin/role-user-relation/load-role-user-with-role-id',
    method: 'post',
    data
  })
}
/**角色、用户信息关联管理维护
 *保存
 */
export function saveRoleUserRelation(data) {
  return request({
    url: '/admin/role-user-relation/save-role-user-relation',
    method: 'post',
    data
  })
}
/**角色、用户信息关联管理维护
 *删除
 */
export function deleteRoleUserRelationWithId(data) {
  return request({
    url: '/admin/role-user-relation/delete-role-user-relation-with-id',
    method: 'post',
    data
  })
}




// 员工兼职管理



// 加载树结构
export function StaffTreeStructure(data) {
  return request({
    url: '/admin/organization/load-organization-tree-with-parent-id',
    method: 'post',
    data
  })
}
// 加载列表
export function EmployeeList(data) {
  return request({
    url: '/api/partJob/load-part-job-with-company',
    method: 'post',
    data
  })
}
// 保存信息
export function PartTimeEmployeePreservation(data) {
  return request({
    url: '/api/partJob/savePartJob',
    method: 'post',
    data
  })
}
// 删除
export function EmployeePartTimeJobDeletion(data) {
  return request({
    url: '/api/partJob/delete-part-job-with-id',
    method: 'post',
    data
  })
}



// 员工兼职管理END
